package com.nengchuan.kbms.dfs.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nengchuan.kbms.dfs.entity.dto.DataReceivePageDTO;
import com.nengchuan.kbms.dfs.entity.dto.DataSharePageDTO;
import com.nengchuan.kbms.dfs.entity.po.DataShare;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nengchuan.kbms.dfs.entity.vo.DataReceiveVO;
import com.nengchuan.kbms.dfs.entity.vo.DataShareVO;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 文件分享 Mapper 接口
 * </p>
 *
 * @author abe
 * @since 2020-03-31
 */
@Repository
public interface DataShareMapper extends BaseMapper<DataShare> {

    /**
     * 我的分享
     */
    IPage<DataShareVO> sharePage(DataSharePageDTO dataSharePageDTO);

    /**
     * 分享给我
     */
    IPage<DataReceiveVO> receivePage(DataReceivePageDTO dataReceivePageDTO);
}
